<?php echo Modules::run('content/header_content') ?>
 
	<div class="container main">
		<div>
      
      
			<div class="15">
        		<div class="row">
          			<div class="span15 content">
  						<h1>My Account Information</h1>  
          			</div>
        		</div>
        		<div class="row">
          
          			<div class="span15 content">
            			<div class="row box-product-row box">
              				<div class="just list" id="orderHistory">
                				<div class="box-product-list mix" style="display:inline-block; opacity:1;">
                  					<div class="row">
                                    	<div class="span14" id="myaccount">
                                        	<?php echo form_open('account/address_create','class ="form-horizontal" ');?>
                                        	<h3>Your Personal Details</h3>
                                            <div class="content-account">
                                            <?php  
												  ?>
                                                <table>
                                                    <tr>
														<td class="label-account">Telephone<span style="color: red;">*</span></td>
														<td><input type="text" name="telephone" value="<?php echo set_value('telephone'); ?>" /></td>
                                                        <td><div id="error_step2" class="error_telephone"><?php echo form_error('telephone'); ?></div></td>
                                                	</tr>
                                                	<tr>
														<td class="label-account">Address 1<span style="color: red;">*</span></td>
														<td><input type="text" name="address1" value="<?php echo set_value('address1'); ?>" /></td>
                                                        <td><div id="error_step2" class="error_address_1"><?php echo form_error('address1'); ?></div></td>
                                                	</tr>
                                                    <tr>
														<td class="label-account">Address 2<span style="color: red;">*</span></td>
														<td><input type="text" name="address2" value="<?php echo set_value('address2'); ?>" /></td>
                                                        <td><div id="error_step2" class="error_address_2"><?php echo form_error('address2'); ?></div></td>
                                                	</tr>
                                                    <tr>
														<td class="label-account">City<span style="color: red;">*</span></td>
														<td><input type="text" name="city" value="<?php echo set_value('city'); ?>" /></td>
                                                        <td><div id="error_step2" class="error_city"><?php echo form_error('city'); ?></div></td>
                                                	</tr>
                                                    <tr>
														<td class="label-account">Post Code<span style="color: red;">*</span></td>
														<td><input type="text" name="post_code" value="<?php echo set_value('post_code'); ?>" /></td>
                                                        <td><div id="error_step2" class="error_post_code"><?php echo form_error('post_code'); ?></div></td>
                                                	</tr>
                                                    <tr>
														<td class="label-account">Country<span style="color: red;">*</span></td>
														<td>
                                                        	<select id="country" name="country">
                                                        		<option value="">-- Select Country --</option>
                                                                <?php foreach ($get_country as $key => $country) { ?>
                                                                    <option value =<?php echo $country->country_id ?>> 
                                                                        <?php echo $country->name ?> </option>
                                                                <?php } ?>
                                                            </select>
                                                        </td>
                                                        <td><div id="error_step2" class="error_country"><?php echo form_error('country'); ?></div></td>
                                                	</tr>
                                                    <tr>
                                                    	
														<td class="label-account">Region / State<span style="color: red;">*</span></td>
														<td>
                                                        	<select id="region" name="region">
                                                        	<option value="">-- Select Region --</option>
                                                            <?php foreach ($get_country as $key => $country) { ?>
                                                            <?php $region = $this->account_model->get_region_by_country_id($country->country_id); ?>
                                                                <?php foreach ($region as $key => $zone) { ?>
                                                                    <option value =<?php echo $zone->zone_id ?> > 
                                                                        <?php echo $zone->name ?> </option>
                                                                <?php } ?>
                                                            <?php } ?>
                                                            </select>
                                                        </td>
                                                        <td><div id="error_step2" class="error_region"><?php echo form_error('region'); ?></div></td>
                                                	</tr>
												</table>
                                                <input class="btn btn-primary" id="submit" type="submit" value="Save Change" />
                    							<a style="text-decoration:none" class="btn" id="cancel" href="<?php echo base_url();?>account">Cancel</a>
                                            </div>
                                            <?php echo form_close(); ?>
                                        </div>
                  					</div>
               					</div>
              				</div>
			  
              				<div class="clearfix">
           					</div>
             
          				</div>
          
        			</div>
      			</div>
    		</div>
  		</div>
	</div>
</div>



<?php echo Modules::run('content/footer_content') ?>